package com.xy.work.template.app.service.impl;
import com.xy.work.template.app.domain.User;
import com.xy.work.template.app.domain.req.LoginReq;
import com.xy.work.template.app.domain.vo.LoginVo;
import com.xy.work.template.app.service.ILoginService;
import com.xy.work.template.app.service.IUserService;
import com.xy.work.template.base.domain.LoginUser;
import com.xy.work.template.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
/**
 * @author niuniu
 * @Date: 2021/8/16 10:02
 * @Description: 完成登录相关操作
 */
@Service
public class ILoginServiceImpl extends BaseServiceImpl<User> implements ILoginService {
    @Autowired
    private IUserService iUserService;
    @Override
    public LoginVo loginPhone(LoginReq loginReq) {
        //TODO 这里做登录业务逻辑
        LoginVo loginVo=new LoginVo();
        loginVo.setLifeTime(new Date());
        loginVo.setToken("xxxxxxxxxxxx");
        return loginVo;
    }

    @Override
    public void signOut(LoginUser loginUser) {
        //TODO 这里做退出登录逻辑
    }
}
